package com.fs.dao;

import com.fs.pojo.QuestionAnswsers;

/**
 * (TbQuestionAnswsers)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-15 10:12:37
 */
public interface QuestionAnswsersDao  extends BaseDao<QuestionAnswsers> {


    /**
     * 根据classPaperId 和 stuId 查询学生在该发布的试卷获得的总分
     * @param clasPaperId
     * @param stuId
     * @return
     */
    Integer getTotalScoreInClassPaperByStuId(String clasPaperId, String stuId);

    /**
     * 获取学生在某张发布的试卷上的某个问题获得的分数
     * @param stuId
     * @param classPaperId
     * @param questId
     * @return
     */
    QuestionAnswsers  queryStudentAnswer(String stuId,String classPaperId,String questId);
}

